import request from '@/utils/request'

const api_name = '/eduService/edu-course'

export default {
  saveCourseInfo(courseInfo) {
    return request({
      url: `${api_name}/save`,
      method: 'post',
      data: courseInfo
    })
  },
  stuPage(page,cs) {
    // debugger
    return request({
      url: `${api_name}/queryPage`,
      method: 'post',
      data: {
        page,
        "subjectId":cs
      }
    })
  },
  getByIdCourseInfo(id) {
    return request({
      url: `${api_name}/courseVo/`+id,
      method: 'get'
    })
  },
  getPageList(pagenu, limit, searchObj) {
    
    return request({
      url: `${api_name}/${pagenu}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  removeById(id) {
    return request({
        url: `${api_name}/${id}`,
        method: 'delete'
    })
},
findByIdFinal(id) {
  return request({
      url: `${api_name}/final/${id}`,
      method: 'get'
  })
  
},
findById(id) {
  return request({
      url: `${api_name}/queryid/${id}`,
      method: 'get'
  })
  
}

}